#include "BlazeStdAfx.h"
#include "BlazeMaxExportDesc.h"

HINSTANCE g_hInstance;

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{

	g_hInstance = (HINSTANCE)hModule;

    return TRUE;
}

extern "C" __declspec(dllexport) const TCHAR* LibDescription()
{
	return BLAZE_EXPORTER_TITLE;
}

extern "C" __declspec(dllexport) int LibNumberClasses()
{
	return 1;
}

extern "C" __declspec(dllexport) ULONG LibVersion()
{
	return VERSION_3DSMAX;
}

extern "C" __declspec(dllexport) ClassDesc* LibClassDesc(int i)
{
	static CExporterDesc Descriptor;
	return i ? NULL : &Descriptor;
}

extern "C" __declspec(dllexport) ULONG CanAutoDefer()
{
	return 1;
}

int CExporterDesc::IsPublic()
{
	return 1;
}

void* CExporterDesc::Create(BOOL loading)
{
	return new CExporter(this);
}

const TCHAR* CExporterDesc::ClassName()
{
	return BLAZE_EXPORTER_TITLE;
}

SClass_ID CExporterDesc::SuperClassID()
{
	return UTILITY_CLASS_ID;
}

Class_ID CExporterDesc::ClassID()
{
	return Class_ID(0x6c610b07, 0x5457574c);
}

const TCHAR* CExporterDesc::Category()
{
	return "";
}
